package main

import (
	"crypto/sha256"
	"encoding/hex"
	"log"
)

func calculateHashDemo(toBeHashed string) string {
	hashInBytes := sha256.Sum256([]byte(toBeHashed))
	hashInStr := hex.EncodeToString(hashInBytes[:])
	log.Printf("%s ==> %s", toBeHashed, hashInStr)
	return hashInStr
}

func main()  {

	//calculateHashDemo("test1")
	//calculateHashDemo("test1")
	//
	//calculateHashDemo("test2")

	//abc := core.NewBlockchain();

	//bc := core.NewBlockchain()
	//bc.SendData("Send 1 BTC to QiYang")
	//bc.SendData("Send 2 EOS to QiYang")
	//
	//bc.Print()

	//rpc.Blockchain = core.NewBlockchain()
	//rpc.Run()

}